package com.deltabravomedia.theoldtoad;

import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.widget.ImageView;

public class Image extends Activity {
	private static final String TAG = "Image";
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        Log.w(TAG, "Launching Image");
        
        ImageView iv = new ImageView(this);
        
        String title = "";
        String fileName = "";
        
        Bundle extras = getIntent().getExtras(); 
        if(extras != null)
        {
        	title = extras.getString("title");
        	fileName = extras.getString("fileName");
        }

        iv.setImageURI(Uri.parse(fileName));
        setContentView(iv);
        this.setTitle(title);
    }
    
    
}